import { SetMetadata } from '@nestjs/common'

export const policy_key = 'policy_key'
// 设置元数据(谁调用的存谁的)
export const Roles = (policy: any, db: string) => SetMetadata(policy_key, { policy, db })
